package cancal;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {
    public static void main(String[] args) {
        Pattern pattern = Pattern.compile("UPDATE|INSERT|DELETE");
        Matcher match = pattern.matcher("\"ts\":1598935077175,\"type\":\"INSERT\"}");
        System.out.println(match.find() + "---" + match.group());

    }
}
